package cn.yunhe.action;

import cn.yunhe.biz.NewsService;
import cn.yunhe.entity.House;

import java.util.List;

public class NewsAction extends BaseAction {
    private NewsService newsService;
    public  String execute() throws Exception{
        List<House>  houseList = newsService.getAllList();
        getMapRequest().put("houseList",houseList);
        return SUCCESS;
    }

    public NewsService getNewsService() {
        return newsService;
    }

    public void setNewsService(NewsService newsService) {
        this.newsService = newsService;
    }
}
